package com.googlewell.zelix.ui;

import me.coley.recaf.config.FieldWrapper;
import me.coley.recaf.ui.controls.NullableText;

public class TextInput extends NullableText {
    public TextInput(String value, FieldWrapper wrapper) {
        this.setText(value);
        this.textProperty().addListener(((observable, oldValue, newValue) -> {
            if (!oldValue.equals(newValue)) {
                wrapper.set(newValue);
            }
        }));
    }
}